<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="pt-BR">
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  </head>
<body>
<div class="well sidebar-nav">
	<ul class="nav nav-list">
	#{itemMenu nome:'Início', action:'Application.index', icone:'icon-home' /}
	
		#{ifnot session.get('username')}
			#{itemMenu nome:'Registre-se', action:'Usuarios.cadastrarUsuario', icone:'icon-user' /}
			#{itemMenu nome:'Busca Avançada', action:'Imovels.buscaAvancada', icone:'icon-search' /}
		#{/ifnot}
		#{else}
	
			<li class="nav-header">Imóveis</li>
			#{itemMenu nome:'Listar Meus Cafofos', action:'Imovels.listar', icone:'icon-list' /}
			#{itemMenu nome:'Listar Cafofos Favoritos', action:'Usuarios.listarFavorito', icone:'icon-list' /}
			#{itemMenu nome:'Inserir', action:'Imovels.cadastrarImovel', icone:'icon-plus' /}
			#{itemMenu nome:'Busca Avançada', action:'Imovels.buscaAvancada', icone:'icon-search' /}
		<li class="nav-header">Usuário</li>	
			#{itemMenu nome:'Alterar Dados', action:'Usuarios.alterarUsuario', icone:'icon-edit'/}
			<hr/>
			#{itemMenu nome:'Sair', action:'Security.logout', icone:'icon-off' /}
		#{/else}
</div>
</body>
</html>